// 新闻资讯区域
import axios from "@/utils/request";

// 获取图文资讯
export const getnewslist = () => {
    return axios({
        url: "/api/getnewslist",
    });
};

// 根据id获取图文资讯详情
export const getnewsById = (id) => {
    return axios({
        url: `/api/getnew/${id}`,
    });
};

// 获取评论信息
export const getcomments = (id) => {
    return axios({
        url: `/api/getcomments/${id}`,
    });
};